import { requestV1 } from '../utils/request';
import { userLoginApi } from '../api';
import { ResponseState } from './services';

export interface UserState {
  account: string;
  password: string;
}

// 1. 登录
export const userLogin = (params: UserState): Promise<ResponseState> => {
  return requestV1.post(userLoginApi, params);
};

export default '';
